// import React from 'react';
import React, { Suspense, lazy } from 'react';


// import { BrowserRouter as Router, Route, Switch, Link } from 'react-router-dom';
import { HashRouter as Router, Route, Switch, Link } from 'react-router-dom';


const LoginView = lazy(() => import('@pages/portal/LoginView'));

//loginMask 选直接到index.html写一下样式哈

const AppRouter = () => (
    <Router>
        <Suspense fallback={<div className="loginMask">正在拼命加载...</div>}>
            <Switch>
                <Route exact path="/Login" component={LoginView} />
                <Route path="/" component={LoginView} />
            </Switch>
        </Suspense>
    </Router>
);

export default AppRouter;